package com.bridge.service;

import com.bridge.model.SysDictConfig;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author bridge
 * @Date 2022/05/25/20:24
 */
public interface IRedisHashService {
    @Transactional(rollbackFor = Exception.class)
    Integer addSysDictConfig(SysDictConfig config) throws Exception;

    Map<String, List<SysDictConfig>> getSysDictConfig() throws Exception;

    List<SysDictConfig> getByType(String type) throws Exception;

    Map<String, List<SysDictConfig>> getAllCacheConfig();

    List<SysDictConfig> getCacheConfigByType(String type);

    List<SysDictConfig> update(String type);
}
